var rootPath = getRootPath();	

$(document).ready(function(){
	
	
	$("#authTest").click(function(){
		alert("授权测试="+rootPath+'/wechat/api/authorization/loginURL/270001');
		
		
		$.ajax({
			method : 'get',
			url : 'http://portal.yonyouqiche.com/wx02/helloII',
			error:function(XMLHttpRequest, ajaxOptions, thrownError){
				alert("连接服务器错误!");
			},
			success : function(resultData){
				alert("receive data="+resultData);
				//window.location.href = resultData;
			}
		});

		
		
	});
	
	
});